Matthias Clasen [Sun, 26 Oct 2014 19:03:58 +0000 (15:03 -0400)]
Use GtkStack:vhomogeneous for popover menus
This allows us to get rid of a size group.
Matthias Clasen [Sun, 26 Oct 2014 18:59:21 +0000 (14:59 -0400)]
GtkStack: split homogeneous
Split homogeneous into separate hhomogeneous and vhomogeneous
properties. vhomogeneous is what we want for popover menus.
Timm Bäder [Sun, 26 Oct 2014 14:21:06 +0000 (15:21 +0100)]
popover: Use the right area for drawing the background
The border shouldn't be subtracted.
Matthias Clasen [Sun, 26 Oct 2014 00:27:18 +0000 (20:27 -0400)]
GtkBox: Fix self-assignment for center widget
This is happening when glade is loading ui files containing
center widgets.
Marek Černocký [Sat, 25 Oct 2014 22:35:56 +0000 (00:35 +0200)]
Updated Czech translation
Marek Černocký [Sat, 25 Oct 2014 22:35:50 +0000 (00:35 +0200)]
Updated Czech translation
Matthias Clasen [Sat, 25 Oct 2014 19:55:54 +0000 (15:55 -0400)]
GtkPlacesSidebar: Don't crash on dnd
gtk_get_current_event() can return NULL. Don't crash if it does.
https://bugzilla.gnome.org/show_bug.cgi?id=739150
Matthias Clasen [Sat, 25 Oct 2014 17:58:29 +0000 (13:58 -0400)]
Revert "Inspector backend hack"
This reverts commit
f88a5dc8c78e6530baeebb6cba75fe3061926052.
Didn't mean to push this.
Matthias Clasen [Sat, 25 Oct 2014 17:31:57 +0000 (13:31 -0400)]
GtkSpinButton: Set the screen on the panel contexts
Failure to do so results in custom styling leaking through in
the inspector. This is pretty obvious, now that the inspector
is using a separate display connection and is generally isolated
from style changes.
Matthias Clasen [Fri, 24 Oct 2014 22:00:19 +0000 (18:00 -0400)]
Inspector backend hack
Matthias Clasen [Sat, 25 Oct 2014 14:31:31 +0000 (10:31 -0400)]
Broadway: Remove display assumptions
In various places, the broadway backend was just using
the default display and assumed that it is the broadway
display. That may not be the case in a multi-backend world,
so instead iterate over all displays and use the first
broadway display - still not perfect, but enough to survive
for now.
Matthias Clasen [Sat, 25 Oct 2014 14:00:57 +0000 (10:00 -0400)]
inspector: Plug a memory leak
Matthias Clasen [Sat, 25 Oct 2014 14:00:04 +0000 (10:00 -0400)]
inspector: Add style classes to the object list
We have a lot of space here now, so show some
useful information.
Matthias Clasen [Sat, 25 Oct 2014 03:36:35 +0000 (23:36 -0400)]
Fix a mixup in popover realization
When the window is on a non-default screen, popover_realize
ended up passing a visual and a parent_window from different
screens into gdk_window_new, which doesn't work. Fix it by
using the visual of the parent window.
Matthias Clasen [Sat, 25 Oct 2014 01:52:23 +0000 (21:52 -0400)]
inspector: Improve details buttons
Ensure that the details buttons are only sensitive when
we actually have details to show.
Matthias Clasen [Sat, 25 Oct 2014 01:14:16 +0000 (21:14 -0400)]
inspector: Improve tab switching
Switch the object and resource trees away from activate-on-single-click
and add a 'view details' button.
Matthias Clasen [Fri, 24 Oct 2014 22:38:15 +0000 (18:38 -0400)]
X11: Don't assume all displays are X11 displays
When iterating over the list of displays gotten from the
display manager, we have to check if what we got is actually
an X11 display.
Matthias Clasen [Fri, 24 Oct 2014 20:23:07 +0000 (16:23 -0400)]
Properly update the style cascade on screen change
GtkStyleContext was not properly handling the style cascade when
setting a screen, causing the inspector global CSS to affect the
inspector window, even though the inspector is using a different
screen now.
Matthias Clasen [Fri, 24 Oct 2014 20:12:33 +0000 (16:12 -0400)]
Fix the build
Some forgotten include path adjustments.
Matthias Clasen [Fri, 24 Oct 2014 19:55:31 +0000 (15:55 -0400)]
inspector: Use a separate display connection
This helps isolate the inspector from some of the changes that
it can trigger. To specify a different display, set
GTK_INSPECTOR_DISPLAY to the name of the display to use for
the inspector window. If no display is specified, GTK+ will
use a separate connection to the default display.
Matthias Clasen [Fri, 24 Oct 2014 17:30:19 +0000 (13:30 -0400)]
Fix a problem with screen changes and csd
When a new screen is set on a window, we unrealize it, to
recreate all the resources. But we don't reset the client_decorated
flag, so realize() doesn't call create_decoration() - which makes
sense, since the decoration already exists. But the side-effect
of create_decoration() is to select the rgba visual, and visuals
are per-screen.
Fix this by looking for the rgba visual in set_screen(), and
replacing it with the rgba visual for the new screen, if necessary.
Benjamin Otte [Fri, 24 Oct 2014 19:31:15 +0000 (21:31 +0200)]
styleproperties: Move into deprecated directory
Benjamin Otte [Fri, 24 Oct 2014 19:22:43 +0000 (21:22 +0200)]
styleproperties: Deprecate
Benjamin Otte [Fri, 24 Oct 2014 19:12:44 +0000 (21:12 +0200)]
styleproperties: Remove header where it's not used
Benjamin Otte [Fri, 24 Oct 2014 19:03:36 +0000 (21:03 +0200)]
styleproperties: Remove unused function
Benjamin Otte [Fri, 24 Oct 2014 18:17:11 +0000 (20:17 +0200)]
css: Disallow bypassing value computation
This special code was added back in the days when computation wasn't
idemptotent. These days it is.
Also, the bypass code path is only used in fallback code that is pretty
much unused.
Benjamin Otte [Fri, 24 Oct 2014 17:58:54 +0000 (19:58 +0200)]
css: Remove unneeded header
Daniel Mustieles [Fri, 24 Oct 2014 17:18:54 +0000 (19:18 +0200)]
Updated Spanish translation
Matthias Clasen [Fri, 24 Oct 2014 12:30:10 +0000 (08:30 -0400)]
widget-factory: Add mnemonics in the prefs dialog
This helps testing the mmemonic label display in the inspector,
and is just good practice.
Matthias Clasen [Fri, 24 Oct 2014 11:49:37 +0000 (07:49 -0400)]
Inspector: Show more misc info about widgets
This adds clip area, accessible role, mapped, realize,
is-toplevel, child-visible, mnemonic labels and tick
callbacks to the displayed information.
Matthias Clasen [Fri, 24 Oct 2014 12:00:41 +0000 (08:00 -0400)]
Add private API to query tick callbacks
This information can be useful for debugging purposes.
Lapo Calamandrei [Fri, 24 Oct 2014 11:08:06 +0000 (13:08 +0200)]
widget-factory: set show-border to false on page 3 notebooks
Lapo Calamandrei [Fri, 24 Oct 2014 11:01:41 +0000 (13:01 +0200)]
Revert "Adwaita: axes borders of notebooks inside frame"
This reverts commit
01e6811776cf6ad8738f182972edbb84626d7fae.
This assumption doesn't work latelly
Мирослав Николић [Fri, 24 Oct 2014 08:38:56 +0000 (10:38 +0200)]
Updated Serbian translation
Chun-wei Fan [Fri, 24 Oct 2014 07:59:18 +0000 (15:59 +0800)]
Visual Studio Builds: Update "Installation"
Add the newly-added public headers for GDK and GTK into the list of files
to "install".
Chun-wei Fan [Fri, 24 Oct 2014 07:58:20 +0000 (15:58 +0800)]
Visual Studio Builds: Update the gtk3-demo Projects
The gtkglarea and sidebar demos have been added, so build them in the
projects. Note that the gtkglarea code is not usable under Windows at this
point as implementation is needed for the GDK-Win32 backend.
Chun-wei Fan [Fri, 24 Oct 2014 07:56:46 +0000 (15:56 +0800)]
Visual Studio Builds: Link to libepoxy
Patches have been submitted to the libepoxy project so that it can be built
under Visual Studio. This will allow the GDK, GTK and gtk3-demo projects
to build, but the gtkglarea code is not usable at this time as
implementation needs to be added to the GDK-Win32 backend for it.
Chun-wei Fan [Fri, 24 Oct 2014 04:53:15 +0000 (12:53 +0800)]
Fix Up Visual Studio Property Sheets
"Install" gdkbroadwaydisplay.h, as it is a public header of GDK Broadway,
also fix the MSVC 2010+ gtk-copy-gdk-broadway.props property sheet as a
'>' is missing. Sorry for not noting these issues earlier, as MSVC
Broadway builds were recently restored. My bad :|
Chun-wei Fan [Fri, 24 Oct 2014 04:23:31 +0000 (12:23 +0800)]
gtk/deprecated/gtkstatusicon.c: Fix Build on C89 Compilers
Declare variable at the top of the block, which is needed from the change
in commit
1bad7865.
Emmanuele Bassi [Thu, 23 Oct 2014 16:42:19 +0000 (17:42 +0100)]
docs: Add replacement example for ImageMenuItem
Otherwise we will be doomed to answer the question of how to replace
GtkImageMenuItem for all eternity.
Rico Tzschichholz [Wed, 22 Oct 2014 18:37:58 +0000 (20:37 +0200)]
gdkglcontext-x11: Use epoxy/glx.h rather then GL/glx.h
Rico Tzschichholz [Wed, 22 Oct 2014 18:35:35 +0000 (20:35 +0200)]
configure: wayland-egl drop version since it is part of mesa not wayland
Gábor Kelemen [Thu, 23 Oct 2014 10:50:50 +0000 (10:50 +0000)]
Updated Hungarian translation
Brion Vibber [Wed, 22 Oct 2014 12:36:23 +0000 (05:36 -0700)]
Fix to gtkstatusicon.c to allow building both X11 and Quartz backends
https://bugzilla.gnome.org/show_bug.cgi?id=739005
Joanmarie Diggs [Wed, 22 Oct 2014 03:15:17 +0000 (23:15 -0400)]
Implement support for ATK_STATE_HAS_TOOLTIP
https://bugzilla.gnome.org/show_bug.cgi?id=738982
Matthias Clasen [Thu, 23 Oct 2014 02:49:31 +0000 (22:49 -0400)]
Fix mispositioned window menu in hi-dpi
We always want to send the position in device pixels,
so apply the window scale before sending them out.
https://bugzilla.gnome.org/show_bug.cgi?id=738955
Chun-wei Fan [Wed, 22 Oct 2014 12:03:34 +0000 (20:03 +0800)]
gdk/broadway/toarray.pl: Fix Code Generation for MSVC
The current implementation of this script generate headers with \x-escaped
strings that can become too long (> 65535 characters) for Visual Studio
to consume, hence the build of broadwayd would break on Visual Studio.
This changes the script to instead format the string as an array of hex
characters, not unlike what GResource does, so that builds can continue as
normal on Visual Studio builds as well.
https://bugzilla.gnome.org/show_bug.cgi?id=739001
Emmanuele Bassi [Wed, 22 Oct 2014 20:20:52 +0000 (21:20 +0100)]
tests/gtk: Add GdkX11GLContext to the whitelist
We cannot create them directly anyway.
Emmanuele Bassi [Wed, 22 Oct 2014 20:17:37 +0000 (21:17 +0100)]
tests/a11y/about: Fix expected text
We recently changed the uppercase licensing text to lower case. The
reference test that checks the contents of the about dialog has to be
fixed to reflect that change.
Robert Ancell [Mon, 19 May 2014 22:03:30 +0000 (10:03 +1200)]
Gdk: add an experimental backend for mir
This is disabled by default. Enable with --enable-mir-backend.
This backend is a combined work of Robert Ancell and Ryan Lortie.
Chun-wei Fan [Wed, 22 Oct 2014 11:40:48 +0000 (19:40 +0800)]
Visual Studio Builds: Fix broadwayd Build
There is now a broadway-buffer.c source that needs to be built for this, so
add it into the projects. Since crypt() is no longer used, don't include
crypt.c in the builds, and so clean up the projects a bit.
Matthias Clasen [Wed, 22 Oct 2014 05:18:54 +0000 (01:18 -0400)]
Drop a reference to gtkthemingengineprivate.h
That file does not exist.
Matthias Clasen [Wed, 22 Oct 2014 03:05:17 +0000 (23:05 -0400)]
3.15.0
Matthias Clasen [Wed, 22 Oct 2014 05:11:34 +0000 (01:11 -0400)]
Add GtkSidebar to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 04:55:39 +0000 (00:55 -0400)]
Add GtkGLArea to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 04:45:22 +0000 (00:45 -0400)]
GtkSidebar: Make docs show up
Matthias Clasen [Wed, 22 Oct 2014 04:36:16 +0000 (00:36 -0400)]
Document gtk_sidebar_get_stack
Matthias Clasen [Wed, 22 Oct 2014 04:34:41 +0000 (00:34 -0400)]
Document gtk_printer_option_set_get_groups
Matthias Clasen [Wed, 22 Oct 2014 04:10:49 +0000 (00:10 -0400)]
Fix docs for gtk_settings_set_property_value
Matthias Clasen [Wed, 22 Oct 2014 04:06:53 +0000 (00:06 -0400)]
Fix docs for gtk_css_provider_load_from_resource
Matthias Clasen [Wed, 22 Oct 2014 04:05:09 +0000 (00:05 -0400)]
Add all sidebar API to the docs
Matthias Clasen [Wed, 22 Oct 2014 04:03:52 +0000 (00:03 -0400)]
Add new papersize api to the docs
Matthias Clasen [Wed, 22 Oct 2014 03:56:17 +0000 (23:56 -0400)]
Add a 3.16 index
We have new GDK api already.
Matthias Clasen [Wed, 22 Oct 2014 03:46:11 +0000 (23:46 -0400)]
Skip GdkX11GLContext in some object tests
Since it can't be constructed without specifying a GdkWindow,
which we don't have here.
Matthias Clasen [Wed, 22 Oct 2014 03:39:05 +0000 (23:39 -0400)]
GL: Follow naming conventions
All the GDK type defines are GDK_TYPE_..., so follow this
pattern for the GLContext subclasses as well.
Benjamin Otte [Wed, 22 Oct 2014 01:38:20 +0000 (03:38 +0200)]
cssnodedeclaration: Fix src/dest swap in memmove()
The main cause here were the wrong style classes being removed, such as
"message-dialog" instead of "csd" for GtkMessageDialog.
Lapo Calamandrei [Tue, 21 Oct 2014 18:35:02 +0000 (20:35 +0200)]
Adwaita: use -gtk-icon-source: none on paned...
...to get rid of the handle decoration istead of setting a transparent
background and abuse a background image for the background color.
Benjamin Otte [Tue, 21 Oct 2014 18:30:20 +0000 (20:30 +0200)]
modelbutton: Fix up for style context changes
- Don't do work anymore that's done in GtkButton
- Don't do a save/restore just to set the state, instead set the state
in the right places.
Benjamin Otte [Tue, 21 Oct 2014 18:30:07 +0000 (20:30 +0200)]
inspector: Add missing directory when scanning for themes
Lapo Calamandrei [Tue, 21 Oct 2014 14:34:42 +0000 (16:34 +0200)]
Adwaita: colorswatch on selected elements style fix
Lapo Calamandrei [Tue, 21 Oct 2014 13:36:22 +0000 (15:36 +0200)]
Adwaita: axes borders of notebooks inside frame
This is what the old adwaita did, not having a better solution for
removing double borders, better to have this back even if it can
be problematic in certain cases.
Lapo Calamandrei [Tue, 21 Oct 2014 11:51:22 +0000 (13:51 +0200)]
Adwaita: properly fix places sidebar
Forgot to treat treeview background... Some code refactoring in
the process.
Andika Triwidada [Tue, 21 Oct 2014 12:46:13 +0000 (12:46 +0000)]
Updated Indonesian translation
Ryan Lortie [Mon, 20 Oct 2014 21:16:22 +0000 (17:16 -0400)]
wayland: don't init if XDG_RUNTIME_DIR missing
wayland doesn't strictly follow the XDG_RUNTIME_DIR spec by falling back
to another directory in case the runtime dir is not properly set.
When this variable is unset, wayland will log an error to us, which we
treat as fatal, aborting the entire program.
Skip ourselves all the trouble and don't try to bring up the wayland
backend when we know it will fail in this way.
https://bugzilla.gnome.org/show_bug.cgi?id=738873
Adel Gadllah [Tue, 21 Oct 2014 11:58:28 +0000 (13:58 +0200)]
gdkglcontext-x11: Fix pixmap creation
Always use NPOT textures
https://bugzilla.gnome.org/show_bug.cgi?id=738670
Alexander Larsson [Tue, 21 Oct 2014 11:51:24 +0000 (13:51 +0200)]
x11 glcontext: Always use RGBA texture format, as we use alphas
Lapo Calamandrei [Tue, 21 Oct 2014 11:25:17 +0000 (13:25 +0200)]
Adwaita: wide paned separator style
...paned separator decoration fixed in the process.
Bastien Nocera [Wed, 17 Sep 2014 16:42:57 +0000 (18:42 +0200)]
wayland: Don't try to create a subsurface again
We already did that inside gdk_wayland_window_create_surface() that's
called 2 lines above.
https://bugzilla.gnome.org/show_bug.cgi?id=738912
Bastien Nocera [Tue, 14 Oct 2014 14:47:11 +0000 (16:47 +0200)]
gtkwidget: Fix typo in comment
Benjamin Otte [Tue, 21 Oct 2014 03:52:05 +0000 (05:52 +0200)]
css: Add "-gtk-icon-source: builtin"
... and make it the default. This takes over the meaning from "none" for
this property in that it draws the fallback builtin image.
"none" now literally means no image will be drawn.
Benjamin Otte [Tue, 21 Oct 2014 03:47:15 +0000 (05:47 +0200)]
stylecontext: fix icon-source extents computation
for the builtin image or invalid matrix case. We used to return invalid
memory in those cases. And that was not good.
Benjamin Otte [Tue, 21 Oct 2014 03:15:37 +0000 (05:15 +0200)]
render: We use CHECKED now, not ACTIVE
Update docs and custom rendering of checkmarks and radio buttons
Matthias Clasen [Tue, 21 Oct 2014 02:13:51 +0000 (22:13 -0400)]
GtkScrolledWindow: Add documentation
Document the new overlay scrolling APIs, and add some more
documentation for the other touch support: kinetic scrolling
and overshoot.
Matthias Clasen [Thu, 9 Oct 2014 21:03:52 +0000 (17:03 -0400)]
Port the overlayscroll example
Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.
Matthias Clasen [Thu, 9 Oct 2014 03:37:29 +0000 (23:37 -0400)]
Add some overlay scrollbar theming to Adwaita
Matthias Clasen [Thu, 9 Oct 2014 03:34:32 +0000 (23:34 -0400)]
GtkScrolledWindow: Add overlay scrollbars
This commit adds a mode to GtkScrolledWindow in which it puts
narrow, auto-hiding scrollbars over the content, instead of
allocating room for the scrollbars outside of the content. We
use traditional scrollbars if we find a mouse or if overlay
scrolling has explicitly turned off.
For test purposes, GTK_TEST_TOUCHSCREEN can be used to get
overlay scrolling even in the presence of a mouse. The
environment variable GTK_OVERLAY_SCROLLING can also be used
to force overlay scrolling on or off.
Matthias Clasen [Sun, 5 Oct 2014 03:37:11 +0000 (23:37 -0400)]
Add an experiment for overlay scrollbars
This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.
Matthias Clasen [Sun, 5 Oct 2014 21:29:32 +0000 (17:29 -0400)]
GtkRange: Add a style class during dragging
This will be used to identify a scrollbar is being dragged - we
don't actually need the style class; another way to keep track
of the dragging status would be ok too.
Benjamin Otte [Tue, 21 Oct 2014 00:06:46 +0000 (02:06 +0200)]
stylecontext: Handle querying the wrong state better
When a getter function (like get_color()) is called and the passed in
state doesn't match the current state returned via get_state(), we used
to do a trick: We called save()/set_state() on the context before
getting the values.
Unfortunately, since
3a337156d11a86c7a88f1f30a09276fdf6f63008 this
has the unfortunate side effect that it also creates a child element.
This breaks various old codebases (spinbutton has been fixed in
998feeb2bc3e37275cfe915e128179d2704ca9c8, Webkit is fixed in
https://bugs.webkit.org/show_bug.cgi?id=137803 ) unfortunately.
So instead, look up the values manually ensuring that no child element
is created but the correct state is used.
Benjamin Otte [Mon, 29 Sep 2014 01:15:44 +0000 (03:15 +0200)]
stylecontext: Return a ref in lookup_values_for_state
This will be necessary when we stop caching values for lookups with the
"wrong" state.
Benjamin Otte [Tue, 21 Oct 2014 00:29:03 +0000 (02:29 +0200)]
computedvalues: Add to_string() and print() functions
The functions are unused. But they are very convenient to use from a
debugger, if you know what I mean...
Benjamin Otte [Sun, 19 Oct 2014 19:04:48 +0000 (21:04 +0200)]
stylecontext: Don't copy CSS values on context_save()
Keeping them is a bad idea now where the widget paths are actually
changed by a save(). And almost all of the time, state or style classes
will be changed anyway.
Looking them up again is just a hash table lookup anyway.
Benjamin Otte [Sat, 18 Oct 2014 04:06:28 +0000 (06:06 +0200)]
stylecontext: Use node declaration in hash
Don't use the StyleInfo anymore.
Benjamin Otte [Sat, 18 Oct 2014 03:45:21 +0000 (05:45 +0200)]
stylecontext: Split out functionality into custom object
GtkCssNodeDeclaration is a new struct with copy-on-write semantics.
It encapsulated the properties used to define a node in the CSS tree.
The idea is to use it in various places for caching, in particular as
key in hash tables.
Matthias Clasen [Tue, 21 Oct 2014 00:54:31 +0000 (20:54 -0400)]
widget-factory: Example for edge-overshot
For extra fun, make some noise.
Matthias Clasen [Mon, 20 Oct 2014 22:44:56 +0000 (18:44 -0400)]
widget-factory: Add a wide-handle example
Andika Triwidada [Mon, 20 Oct 2014 18:44:26 +0000 (18:44 +0000)]
Updated Indonesian translation
Carlos Garnacho [Sun, 12 Oct 2014 12:29:24 +0000 (14:29 +0200)]
scrolledwindow: Add ::edge-overshot signal
This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.
https://bugzilla.gnome.org/show_bug.cgi?id=738534
Lapo Calamandrei [Mon, 20 Oct 2014 13:22:42 +0000 (15:22 +0200)]
Adwaita: GtkPlacesSidebar treeview text color fix
With my latest changes we have a darker text color for views and
entries (which I assume are content), the places sidebar is totally
chrome though so it needs the chrome text color back.
Daniel Mustieles [Mon, 20 Oct 2014 13:08:33 +0000 (15:08 +0200)]
Updated Spanish translation